﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XsqTech.SmartOA.Service.DTO
{
    public enum State
    {
        请求成功=200,
        请求失败=500,
        数据未导入=400,
    }
    public class ResponseModel
    {
        public State Code { get; set; } = State.请求成功;
        /// <summary>
        /// 返回信息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 返回数据类型
        /// </summary>
        public object? Data { get; set; }
        /// <summary>
        /// 返回条数
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// JWTToken
        /// </summary>
        public object? Token { get; set; }
        /// <summary>
        /// 刷新token
        /// </summary>
        public object? NewToken { get; set; }
    }
}
